projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d1214b
)
(win32_wnd_proc): No need to forward WM_ERASEBKGND to main thread.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 14 Jun 1996 20:54:26 +0000
(20:54 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 14 Jun 1996 20:54:26 +0000
(20:54 +0000)
src/w32fns.c
patch
|
blob
|
history
diff --git
a/src/w32fns.c
b/src/w32fns.c
index 9385d4da0c6603bb16a92f8bcc3eee20ff7b6c26..0700173659541c1e3b4db9492856d7636c14266b 100644
(file)
--- a/
src/w32fns.c
+++ b/
src/w32fns.c
@@
-2930,10
+2930,15
@@
win32_wnd_proc (hwnd, msg, wParam, lParam)
switch (msg)
{
case WM_ERASEBKGND:
+ /* This is (always?) generated by BeginPaint, so there is no gain
+ in forwarding this message to the main thread - it can simply
+ erase the background before repainting. */
+#if 0
enter_crit ();
GetUpdateRect (hwnd, &wmsg.rect, FALSE);
leave_crit ();
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
+#endif
return 1;
case WM_PALETTECHANGED:
/* ignore our own changes */